﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zocono.WCS.Domain.EntityInfo;
using Zocono.WCS.Domain.ProgrameDomain;
using Zocono.WCS.Infrastructure.ApllicationDto.WCSTaskDto;
using Zocono.WCS.Infrastructure.ApllicationDto;
using Zocono.WCS.Infrastructure.ApllicationDto.DtoWcsManage;

namespace Zocono.WCS.Application.AppConfigureManage
{
    public class ProgrameInfoApp
    {
        private readonly IProgrameService _ProgrameService;

        public ProgrameInfoApp(IProgrameService programeService)
        {
            _ProgrameService = programeService;
        }

        public async Task<PageDto<ProgrameInfo>> GetPagedProgrameInfoAsync(QueryProgrameInfoDto queryProgrameInfo)
        {
            return await _ProgrameService.GetPagedProgrameInfoAsync(queryProgrameInfo);
        }

        public async Task<List<ProgrameInfo>> GetProgrameInfoListAsync()
        {
            return await _ProgrameService.GetAllProgrameInfo();
        }

        public async Task<bool> CreateProgrameInfoAsync(ProgrameInfo programeInfo)
        {
            return await _ProgrameService.CreateProgrameInfoAsync(programeInfo);
        }

        public async Task<bool> ModifyProgrameInfoAsync(ProgrameInfo programeInfo)
        {
            return await _ProgrameService.ModifyProgrameInfoAsync(programeInfo);
        }

        public async Task<bool> DeleteProgrameInfoAsync(List<ProgrameInfo> programeInfoList)
        {
            return await _ProgrameService.DeleteProgrameInfoAsync(programeInfoList);
        }

        public async Task<ProgrameInfo> GetProgrameInfoByIdAsync(long id)
        {
            return await _ProgrameService.GetProgrameInfoByIdAsync(id);
        }

        public async Task<bool> DelectProgrameInfoByIdAsync(long id)
        {
            return await _ProgrameService.DelectProgrameByIdAsync(id);
        }
    }
}
